#include "stdafx.h"
#include "Request.h"


Request::Request()
{
	m_hResponseSemaphore = CreateSemaphore(NULL, 0, 1, NULL);
	m_bResponseValue = false;
}

Request::~Request()
{
	CloseHandle(m_hResponseSemaphore);
}

void Request::Response(bool bValue)
{
	m_bResponseValue = bValue;
	ReleaseSemaphore(m_hResponseSemaphore, 1, NULL);
}